GetSpeechRate
You use the GetSpeechRate function to obtain a speech channel's current speech rate.
FUNCTION GetSpeechRate (chan: SpeechChannel; VAR rate: Fixed)
: OSErr;
chan
- The speech channel whose rate you wish to determine.
rate
- On exit, the speech channel's speech rate, expressed as a fixed-point, words-per-minute value.
DESCRIPTION
The GetSpeechRate function returns, in the rate parameter, the speech rate of the speech channel specified by the chan parameter.
SPECIAL CONSIDERATIONS
You can call the GetSpeechRate function at interrupt time.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the GetSpeechRate function are
| Trap macro | Selector |
|---|
_SoundDispatch | $0448000C |
RESULT CODES
| noErr | 0 | No error |
| invalidComponentID | -3000 | Speech channel is uninitialized or bad |